package com.jinshi.trade.controller;

import com.jinshi.trade.service.HelloRemote;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ClientController {

    @Autowired
    HelloRemote remote;

    @RequestMapping("/info/{param}")
    public String getProvider(@PathVariable("param") String param){
        return remote.hello(param);
    }
}
